'use strict';

const Service = require('egg').Service;

class SynopsisService extends Service {
  async find(key) {
    let data = new Array();  
    let sql = `SELECT * FROM synopsis WHERE name Like "%${key}%"`;
    data= await this.app.mysql.query(sql);
    return { data };
  }

  
}

module.exports = SynopsisService;
